import request from '@/utils/request'

export function list() {
  return request({
    url: '/menu/menus',
    method: 'post',
  })
}

export function update(data) {
    return request({
      url: '/menu/update',
      method: 'post',
      data
    })
}

export function del(data) {
    return request({
      url: '/menu/delete',
      method: 'post',
      data
    })
}

export function add(data) {
    return request({
      url: '/menu/add',
      method: 'post',
      data
    })
}